package io;

import javax.print.attribute.standard.MediaSize;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class FosDemo
{
    public static void main(String[] args) throws IOException
    {
        // FileOutPutStream 函数 必须有目录 否则会找不到文件
        FileOutputStream fos = new FileOutputStream("a.dat");
        fos.write(1);
        byte[] data = new byte[]{1,34,5,6,7,'c'};
        fos.write(data);
        fos.close();
    }
}
